﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TinMoi.ascx.cs" Inherits="CuoiHoi.UserControls.TinMoi" %>

<div class="slide-doc">
    <div id="newsticker-demo">
        <div style="visibility: visible; overflow: hidden; position: relative; z-index: 2;
            left: 0px; height: 300px !important;"
            class="newsticker-jcarousellite">
            <ul style="margin: 0pt; padding: 0pt; position: relative; list-style-type: none;
                z-index: 1; height: 765px; top: -245.835px;">

                <%  string patch = "";
                    for (int i = 0; i < TbTinTuc.Rows.Count; i++)
                    {
                        patch = GetRouteUrl("ChiTietDanhMuc"
                  , new
                  {
                      Title = CuoiHoi.Router.NonUnicode(TbTinTuc.Rows[i]["TieuDe"].ToString()),
                      Id = TbTinTuc.Rows[i]["idTinTuc"].ToString(),
                      IdDanhMuc = TbTinTuc.Rows[i]["idTheLoai"].ToString(),
                      TitleDanhMuc = CuoiHoi.Router.NonUnicode(TbTinTuc.Rows[i]["TenTheLoai"].ToString()),
                  });
                %>
                <li style="overflow: hidden; float: none; width: 100%; height: 79px;">
                    <div class="media">
                        <a rel="nofollow" class="pull-left" href="<% Response.Write(patch); %>">
                            <% if (TbTinTuc.Rows[i]["AnhDaiDien"].ToString() != "") Response.Write("<img src='../images/" + TbTinTuc.Rows[i]["AnhDaiDien"].ToString() + "' style='width: 64px; height: 64px;' alt='" + TbTinTuc.Rows[i]["TieuDe"].ToString() + "'/>");%>
                        </a>
                        <div class="media-body">
                            <a rel="nofollow" href='<% Response.Write(patch);%>'>
                                <h2 class="media-heading"><% Response.Write(TbTinTuc.Rows[i]["TieuDe"].ToString()); %>
                                </h2>
                            </a>
                        </div>
                    </div>
                </li>
                <%}%>
            </ul>
        </div>
    </div>
</div>

